home *** CD-ROM | disk | FTP | other *** search
-
-
-
- aaaattttcccchhhheeeecccckkkkppppooooiiiinnnntttt((((3333CCCC)))) aaaattttcccchhhheeeecccckkkkppppooooiiiinnnntttt((((3333CCCC))))
-
-
-
- NNNNAAAAMMMMEEEE
- atcheckpoint, atrestart - add checkpoint and restart (CPR) event handlers
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <stdlib.h>
-
- int atcheckpoint(void (*_f_u_n_c)(void));
-
- int atrestart(void (*_f_u_n_c)(void));
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- These functions are used to register event handlers for checkpoint and
- restart, and activate CPR signal handling. The _a_t_c_h_e_c_k_p_o_i_n_t() routine
- adds the function _f_u_n_c() to the list of functions to be called without
- arguments upon receipt of checkpoint; see _c_k_p_t__c_r_e_a_t_e(3). Similarly, the
- _a_t_r_e_s_t_a_r_t() routine registers the callback function _f_u_n_c() for a restart
- event; see _c_k_p_t__r_e_s_t_a_r_t(3). At checkpoint or restart time, registered
- functions are called in the same order as their registration.
-
- These functions are recommended for use during initialization when
- applications expect to be checkpointed but contain checkpoint-unsafe
- objects; see _c_p_r(1) for a list of unsafe objects. An application may
- register multiple checkpoint and/or restart event handlers to be called
- when checkpoint and/or restart occur, for example to disconnect socket
- connections at checkpoint time and reconnect them at restart time.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- The _a_t_c_h_e_c_k_p_o_i_n_t() and _a_t_r_e_s_t_a_r_t() routines return 0 if the registration
- succeeds, or -1 with _e_r_r_n_o set if registration fails. The maximum number
- of handlers allowed for each process (or thread) is 32.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _c_p_r(1), _c_v_i_e_w(1), _c_k_p_t__c_r_e_a_t_e(3), _c_k_p_t__r_e_m_o_v_e(3), _c_k_p_t__r_e_s_t_a_r_t(3),
- _c_k_p_t__s_t_a_t(3)
- _I_R_I_X _C_h_e_c_k_p_o_i_n_t _a_n_d _R_e_s_t_a_r_t _O_p_e_r_a_t_i_o_n _G_u_i_d_e
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-